
<div class="pageContent">
	<form method="post" action="<?echo __WWWROOT__.'Admin/News/update.php'?>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<input type="hidden" name="id" value="<?echo $news_info['id']?>">
			<dl>
				<dt>标题：</dt>
				<dd><input name="title" id="title" class="required" type="text" size="50" value="<?echo $news_info['title']?>" alt=""/></dd>
			</dl>
			<dl class="nowrap">
				<dt>类型：</dt>
				<dd>
					<select name="type"  class="required">
						<option value="">--类型--</option>
							<?foreach($types as $key=>$t){?>
							<option value="<?echo $key?>" <?echo ($news_info['type']==$key)?'selected="selected"':''?>><?echo $t?></option>}
							<?}?>
					</select>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>排序值：</dt>
				<dd><input name="rank" type="text" size="20" value="<?echo $news_info['rank']?>" alt=""/></dd>
			</dl>
			<dl class="nowrap">
				<dt>内容：</dt>
				<dd><textarea class="editor" name="content" rows="16" cols="100"><?echo $news_info['content']?></textarea></dd>
			</dl>
			<dl class="nowrap">
				<dt>创建者：</dt>
				<dd><input name="create_username" type="text" size="20" value="<?echo $news_info['create_username']?>" alt="" readonly="readonly"/></dd>
			</dl>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">修改</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>

<script type="text/javascript">
	$("#title").focus();
</script>
